<template>
	<view class="page" :style="{'min-height':h+'px','padding-top':mt+'px'}">
		<c-nav-bar title="申请成功"></c-nav-bar>
		<view class="result">
			<image src="https://i.ringzle.com/file/20240626/5a94fecf2f174d0aa87d7ff12439f737.png"></image>
			<text>提交成功</text>
		</view>
		<view class="tip">电子发票需要一定时间才能发送至您的邮箱<br/>请耐心等待。可前往“开票记录”查看进度，如有疑问请咨询客服</view>
		<view class="btns">
			<view @tap="toInvoice">返回首页</view>
			<view @tap="reviceRecord">查看开票记录</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				h: uni.getSystemInfoSync().windowHeight - 90,
				mt: uni.getSystemInfoSync().statusBarHeight + 44
			}
		},
		methods: {
			toInvoice(){
				uni.reLaunch({
					url:'/pages/index/index'
				})
			},
			reviceRecord(){
				uni.navigateTo({
					url:'/pagesMy/invoice/record'
				})
			}
		}
	}
</script>

<style scoped lang="less">
	.page{
		padding: 64rpx 40rpx;
		box-sizing: border-box;
		.result{
			display: flex;
			flex-direction: column;
			align-items: center;
			margin-top: 64rpx;
			image{
				width: 96rpx;
				height: 96rpx;
			}
			&>text{
				font-size: 32rpx;
				font-family: PingFang-SC-Bold, PingFang-SC;
				font-weight: bold;
				color: #111111;
				margin-top: 20rpx;
			}
		}
		
		.tip{
			padding: 62rpx 43rpx 0;
			box-sizing: border-box;
			text-align: center;
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #AAAAAA;
		}
		
		.btns{
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 120rpx;
			&>view{
				width: calc(50% - 25rpx);
				height: 92rpx;
				border-radius: 46rpx;
				border: 4rpx solid #CCCCCC;
				font-size: 32rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #333333;
				box-sizing: border-box;
				display: flex;
				align-items: center;
				justify-content: center;
				&:last-child{
					border: 4rpx solid #007A69;
					background: #007A69;
					color: #FFFFFF;
				}
			}
		}
	}
</style>